<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/style.css" />
<link href="../assets/css/codemirror.css" rel="stylesheet" />
<link rel="stylesheet" href="../assets/css/ace.min.css" />
<link rel="stylesheet" href="../font/css/font-awesome.min.css" />
<link href="../css2/1140.css" rel="stylesheet" />
<link href="../css2/normalize.css" rel="stylesheet" />
<link href="../css2/jquery-ui.css" rel="stylesheet" />
<link href="../css2/jquery.idealforms.min.css" rel="stylesheet"
	media="screen" />
<link href="${pageContext.request.contextPath}/css2/styles.css"
	rel="stylesheet" media="all" />
<!--[if lte IE 8]>
    <link rel="stylesheet" href="../assets/css/ace-ie.min.css" />
    <![endif]-->
<script src="../js/jquery-1.9.1.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="../Widget/Validform/5.3.2/Validform.min.js"></script>
<script src="../assets/js/typeahead-bs2.min.js"></script>
<script src="../assets/js/jquery.dataTables.min.js"></script>
<script src="../assets/js/jquery.dataTables.bootstrap.js"></script>
<script src="../assets/layer/layer.js" type="text/javascript"></script>
<script src="../js/lrtk.js" type="text/javascript"></script>
<script src="../assets/layer/layer.js" type="text/javascript"></script>
<script src="../assets/laydate/laydate.js" type="text/javascript"></script>




<title>管理员</title>
</head>

<body>



	<div class="page-content clearfix">
		<div class="administrator">


			<div id="main">
				<div class="container clearfix">
					<div class="row">



						<div class="eightcol last">

							<!-- Begin Form -->

							<form method="post" action="../huser/updateuser" id="my-form">

								<section name="Step 1">
								<div>
									<h2>修改管理员信息:</h2>
								</div>
								<input id="username" name="id" value="${user.id }" type="hidden" />
								<div>
									<label>姓名:</label><input id="username" name="name"
										value="${user.user_name }" type="text" />
								</div>
								<div>
									<label>密码:</label><input id="pass" name="password"
										value="${user.user_password }" type="password" />
								</div>
								<div>
									<label>性别:</label> <select class="select" name="sex">
										<option value="1">男</option>
										<option value="0">女</option>

									</select>
								</div>
								<div>
									<label>年龄:</label><input id="username" name="age" type="number"
										value="${user.user_age }" />
								</div>
								<div>
									<label>手机:</label><input id="username" name="tel" type="number"
										value="${user.user_tel }" />
								</div>
								<div>
									<label>邮箱:</label><input id="email" name="email"
										value="${user.user_email }" data-ideal="required email"
										type="email" />
								</div>


								</section>

								<div>
									<hr />
								</div>

								<div>
									<button type="submit">保存</button>
									<button id="reset" type="button">取消</button>
								</div>

							</form>


						</div>

					</div>
				</div>
			</div>


			<script src="../js/jquery-1.8.3.min.js"></script>
			<script src="../js/jquery-ui.min.js"></script>
			<script src="../js/jquery.idealforms.js"></script>
			<script>
				var options = {

					onFail : function() {
						alert($myform.getInvalid().length + ' invalid fields.')
					},

					inputs : {

						'username' : {
							filters : 'required username',
							data : {
							//ajax: { url:'validate.php' }
							}
						},
						'file' : {
							filters : 'extension',
							data : {
								extension : [ 'jpg' ]
							}
						},

						'comments' : {
							filters : 'min max',
							data : {
								min : 50,
								max : 200
							}
						},
						'states' : {
							filters : 'exclude',
							data : {
								exclude : [ 'default' ]
							},
							errors : {
								exclude : 'Select a State.'
							}
						},
						'langs[]' : {
							filters : 'min max',
							data : {
								min : 2,
								max : 3
							},
							errors : {
								min : 'Check at least <strong>2</strong> options.',
								max : 'No more than <strong>3</strong> options allowed.'
							}
						}
					}
				};

				var $myform = $('#my-form').idealforms(options).data(
						'idealforms');

				$('#reset').click(function() {
					$myform.reset().fresh().focusFirst()
				});
				$myform.focusFirst();
			</script>


		</div>
	</div>

</body>
</html>
